package ftl.games.piratas;

import org.anddev.andengine.engine.handler.physics.PhysicsHandler;
import org.anddev.andengine.entity.sprite.AnimatedSprite;
import org.anddev.andengine.opengl.texture.region.TiledTextureRegion;

public class Camion extends AnimatedSprite {
	
	public int estado;
	private final PhysicsHandler mPhysicsHandler;
	
	
	public Camion(float pX, float pY, float pTileWidth, float pTileHeight,TiledTextureRegion pTiledTextureRegion) {
		super(pX, pY, pTileWidth, pTileHeight, pTiledTextureRegion);
		this.mPhysicsHandler = new PhysicsHandler(this);
		this.Inicio();
		
	}

	public Camion(final float pX, final float pY, final TiledTextureRegion pTextureRegion) {
		super(pX, pY, pTextureRegion);
		this.mPhysicsHandler = new PhysicsHandler(this);
		this.Inicio();

	}
	
	public void Inicio ()
	{
		this.registerUpdateHandler(this.mPhysicsHandler);
		this.estado = EstadoCamion.EN_PUESTO;
	}
	  
	  
	  
	


	
	  
}
